package com.cn.customer.housekeeping.housekeepingb.ui;

import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.TextView;

import com.cn.customer.housekeeping.housekeepingb.R;
import com.cn.customer.housekeeping.housekeepingb.bean.BaseResp;
import com.cn.customer.housekeeping.housekeepingb.biz.personcenter.IUserLoginView;
import com.cn.customer.housekeeping.housekeepingb.biz.personcenter.InterfacePresenter;
import com.cn.customer.housekeeping.housekeepingb.ui.base.BaseActivity;
import com.cn.customer.housekeeping.housekeepingb.util.NavUtils;


/***
 *订单详情
 */
public class MerchandiseDetailsActivity extends BaseActivity implements IUserLoginView {
    private InterfacePresenter mInterfacePresenter;

    TextView tvwu;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_merchandisedetails);
        super.onCreate(savedInstanceState);
    }
    TextView iv_set;
    @Override
    public void initViews() {
        mInterfacePresenter = new InterfacePresenter();
        mInterfacePresenter.attachView(this);
        iv_set=(TextView)findViewById(R.id.iv_set);

    }

    @Override
    public void initListeners() {
        iv_set.setOnClickListener(this);
    }


    @Override
    public void initData() {

    }

    @Override
    public void setHeader() {
        super.setHeader();
        rlTitle.setVisibility(View.VISIBLE);
        tvTopTitle.setText("订单详情");

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.iv_set://订单跟踪
                NavUtils.gotoMerchandiseTrackActivity(MerchandiseDetailsActivity.this);
                break;
        }
        super.onClick(v);
    }

    @Override
    public void onError(BaseResp s) {

    }

    @Override
    public void onSuccess(BaseResp s) {

    }

    @Override
    public void showLoading() {
        super.showLoading();
    }

    @Override
    public void hideLoading() {
        super.hideLoading();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}
